package dto

import "yangbo/model"

type UserDto struct {
	Name string `json:"name"`
	StudentNu string `json:"student_nu"`
}

func TouserDto(user model.User) UserDto {
	return UserDto{
		Name:        user.Name,
		StudentNu:   user.StudentNu,
	}
}